package com.hjw.junit;

import com.hjw.exer2.Ticket;

/**
 * @author hjwStrart
 * @create 2022-01-11 17:55
 */
public class TestTicket {
    public static void main(String[] args) {
        Ticket[] tickets = new Ticket[5];
        Ticket ticket = null;
        int random;
        for (int i = 0; i < tickets.length; i++) {
             ticket = new Ticket();
             random = (int)(Math.random()*10 + 1);
            for (int j = 0; j < random; j++) {
                ticket.saleTicket();
            }
        }
        System.out.println(Ticket.getTicketCount());
    }
}
